import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';

import './assets/main.css'
import App from './App.vue'

import store from "@/util/store/index.js";
import router from "@/util/route/index.js";
import request from "@/util/request/index.js";

const app = createApp(App)

app.use(ElementPlus)
app.use(Avue, {
    size:'small', //small。可选值small/mini/medium;
    menuType:'text', //text。可选值button/icon/text/menu
    theme:'dark', // white ,dark
    text: 'avuejs.com',
    fontFamily: 'microsoft yahei',
    color: "#999",
    fontSize: 16,
    opacity: 100,
    bottom: 10,
    right: 10,
    ratio: 1
});

app.use(router)
app.use(store);
app.mount('#app')

app.config.globalProperties.$axios = request;
